public class Main {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(0,199);
        //System.out.println(myArrayList.contains(1));
        //System.out.println(myArrayList.indexOf(1));
        myArrayList.set(1,99);
        myArrayList.remove(99);
        myArrayList.display();
    }
}